// house_pkg/pages/building/index.ts
Page({
  data: {
    // 要遍历 楼栋
    building: 10,
    // 小区名字
    point: '',
  },
  onLoad({ point }) {
    this.setData({
      point,
      building: this.getRander(1, 10)
    })
  },
  getRander(min, max) {
    return Math.floor(Math.random() * (max - min + 1)) + min
  }

})